package com.leonzhangxf.spel.reference.bean;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;
import java.util.GregorianCalendar;

/**
 * @author leonzhangxf
 * @date 20190427
 */
@Setter
@Getter
@NoArgsConstructor
@ToString
public class Inventor {

    private String name;

    private String nationality;

    private String[] inventions;

    private Date birthdate;

    private PlaceOfBirth placeOfBirth;

    public Inventor(String name, String nationality) {
        GregorianCalendar c = new GregorianCalendar();
        this.name = name;
        this.nationality = nationality;
        this.birthdate = c.getTime();
    }

    public Inventor(String name, Date birthdate, String nationality) {
        this.name = name;
        this.nationality = nationality;
        this.birthdate = birthdate;
    }
}
